package com.itheima.service;

import com.itheima.bean.ShoppingCart;

import java.util.List;
import java.util.Map;

public interface ShoppingCartService {
    /**
     * 获取购物车的清单
     * @return
     */
    List<ShoppingCart> findAll();

    /**
     * 添加购物车
     * @param shoppingCart
     * @return
     */
    ShoppingCart add(ShoppingCart shoppingCart);

    /**
     * 清空用户购物车
     * @param
     * @return
     */
    int delete();

    /**
     * 删除购物车
     * @param map
     * @return
     */
    ShoppingCart delete(Map<String,Long> map);
}
